<?php

namespace App\model\panyuan;

use Illuminate\Database\Eloquent\Model;

/**
 * App\model\panyuan\WorkshopLog
 *
 * @property int $id
 * @property int|null $user_id
 * @property int|null $workshop_id
 * @property string|null $value 更新内容
 * @property string $desc
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereDesc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereValue($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereWorkshopId($value)
 * @mixin \Eloquent
 * @property int|null $status
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopLog whereStatus($value)
 * @property-read \App\User|null $user
 */
class WorkshopLog extends Model
{
    protected  $table='workshop_log';
    const STATUS_SHENHE=0;
    const STATUS_PASS=1;
    const STATUS_REJECT=2;
    public function user(){
        return $this->belongsTo(\App\User::class,'user_id');
    }
}
